<template>
  <div class="ui form">
    <div class="field">
      <textarea
        rows="5"
        v-model="entity.body"
        @input="update(entity)"
        placeholder="写点东西....."
      ></textarea>
    </div>
  </div>
</template>
<script>
import { mapActions } from "vuex";
export default {
  props: ["entity"],
  name: "Editor",
  methods: {
    ...mapActions(["update"])
  }
};
</script>

<style></style>
